package com.ruoyi.jiayou.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.jiayou.mapper.CfRescueMapper;
import com.ruoyi.jiayou.domain.CfRescue;
import com.ruoyi.jiayou.service.ICfRescueService;

/**
 * 救援任务Service业务层处理
 * 
 * @author zhangbiao
 * @date 2024-06-07
 */
@Service
public class CfRescueServiceImpl implements ICfRescueService 
{
    @Autowired
    private CfRescueMapper cfRescueMapper;

    /**
     * 查询救援任务
     * 
     * @param id 救援任务主键
     * @return 救援任务
     */
    @Override
    public CfRescue selectCfRescueById(Long id)
    {
        return cfRescueMapper.selectCfRescueById(id);
    }

    /**
     * 查询救援任务列表
     * 
     * @param cfRescue 救援任务
     * @return 救援任务
     */
    @Override
    public List<CfRescue> selectCfRescueList(CfRescue cfRescue)
    {
        return cfRescueMapper.selectCfRescueList(cfRescue);
    }

    /**
     * 新增救援任务
     * 
     * @param cfRescue 救援任务
     * @return 结果
     */
    @Override
    public int insertCfRescue(CfRescue cfRescue)
    {
        return cfRescueMapper.insertCfRescue(cfRescue);
    }

    /**
     * 修改救援任务
     * 
     * @param cfRescue 救援任务
     * @return 结果
     */
    @Override
    public int updateCfRescue(CfRescue cfRescue)
    {
        return cfRescueMapper.updateCfRescue(cfRescue);
    }

    /**
     * 批量删除救援任务
     * 
     * @param ids 需要删除的救援任务主键
     * @return 结果
     */
    @Override
    public int deleteCfRescueByIds(Long[] ids)
    {
        return cfRescueMapper.deleteCfRescueByIds(ids);
    }

    /**
     * 删除救援任务信息
     * 
     * @param id 救援任务主键
     * @return 结果
     */
    @Override
    public int deleteCfRescueById(Long id)
    {
        return cfRescueMapper.deleteCfRescueById(id);
    }
}
